package com.vates.factorial;

import java.util.*;
public class main {

	
	public static void main(String[] args) {
	
		
		 Factorial F = new Factorial();
		
		 Scanner s=new Scanner(System.in);
		 String input=s.nextLine();
		 int numero= Integer.parseInt(input);
		
		System.out.println("El factorial es: "+F.Factorial(numero));
			
		 double factorial = 1;
		 
		 while ( numero!=0) {
			  factorial=factorial*numero;
			  numero--;
			}
		 System.out.println(factorial);
		 
		 
	}


}
